package com.xc.stock.aop.distributedlock;

/**
 * 
 * title: DistributedLockCallback.java 分布式锁回调接口
 *
 * @author rplees
 * @email rplees.i.ly@gmail.com
 * @version 1.0
 * @created Sep 1, 2020 5:01:22 PM
 */
@FunctionalInterface
public interface DistributedLockCallback<T> {
	/**
	 * 调用者必须在此方法中实现需要加分布式锁的业务逻辑
	 *
	 * @return
	 */
	public T process() throws Throwable;
}
